<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/views/common/includeCommon.jsp"%>

<!DOCTYPE html>
<html lang="en_US">
    <head>
    	<title></title>
    	<script type="text/javascript">
    		var tempId = '${tempId}';
    	</script>
    	<script type="text/javascript" src="${ctx}/static/js/manage/markingPaper/objective_student.js"></script>
    	<style type="text/css">
	    	.btn-sm, .btn-group-sm > .btn {
			    font-size: 12px;
			    line-height: 20px;
			    margin-bottom: 3px;
			}
			.table {
			    width: 100%;
			    max-width: 100%;
			    font-size: 12px;
			    margin-bottom: 20px;
			}
    	</style>
    </head>
    <body>
    	<div class="row">
			<div class="col-md-12">
				<div class="panel panel-white">
					<div class="panel-body">
						<form style="position:relative" id="splitPage" action="${ctx}/manage/markingPaper/objective/viewObjectiveStudent?tempId=${tempId}" method="POST" role="form" class="form-horizontal">  
							<!-- search part -->
							<div id="toolbar" class="panel panel-default" style="margin:-5 0 -5 0;padding:0 0 0 0;">
								<div class="panel-body">
									<div class="form-inline" role="form">
										<div class="form-inline form-group">
											<div class="input-group" style="width: 230px;margin-bottom: 5px;">
												<span class="input-group-addon"><spring:message code="app.examPaper.title.khxm"/></span>
												<input class="form-control" name="khxm" value="${khxm}" 
													style="width:200px;" placeholder="<spring:message code="app.examPaper.placeholder.khxm" />">
											</div>
											<div class="input-group" style="width: 230px;margin-bottom: 5px;">
												<span class="input-group-addon"><spring:message code="app.examPaper.title.class"/></span>
												<input class="form-control" name="bjbh" value="${bjbh}" 
													style="width:200px;" placeholder="<spring:message code="app.examPaper.title.classNo" />">
												<%-- <select name="classNo" value="${classNo}" class="form-control" style="width:200px;">
													<option value=""><spring:message code="app.common.title.select"/></option>
													<c:forEach var="item" items="${classs}">
														<option value="${item.CLASS_NO}" <c:if test="${classNo==item.CLASS_NO}">selected="selected"</c:if>>${item.CLASS_NO}</option>
													</c:forEach>
												</select> --%>
											</div>
											<button type="submit" class="fa fa-search btn btn-warning btn-sm searchBtn"><spring:message code="app.common.action.search"/></button>
										</div>
									</div>
							  	</div>
							</div>
							<!-- table part -->
							<table id="dataTable" class="table table-striped table-bordered table-hover table-full-width">
	                            <thead>
	                                <tr>
	                                    <th><spring:message code="app.common.title.serial" /></th>
	                                    <th><spring:message code="app.examPaper.title.classNo" /></th>
	                                    <th><spring:message code="app.examPaper.title.ksbh" /></th>
	                                    <th><spring:message code="app.examPaper.title.ksxm" /></th>
	                                    <th><spring:message code="app.examPaper.title.objective.score" /></th>
	                                    <th><spring:message code="app.common.action.operate" /></th>
	                                </tr>
	                            </thead>
	                            <tbody>
	                                <c:forEach items="${pagination.datas}" var="entity" varStatus="s">
	                                    <tr data-stuNo="${entity.exa_no}">
	                                        <td><c:out value="${s.index + 1}" /></td>
	                                        <td><c:out value="${entity.class_no}" /></td>
	                                        <td><c:out value="${entity.exa_no}" /></td>
	                                        <td><c:out value="${entity.stu_name}" /></td>
	                                        <td><c:out value="${entity.score}" /></td>
	                                        <td>
	                                        	<a title="<spring:message code="app.markingPaper.placeholder.student.score"/>" 
													class="fa fa-file-alt btn btn-info btn-sm btn-view">
													<spring:message code="app.markingPaper.action.student.score" /></a>
												<a title="<spring:message code="app.markingPaper.placeholder.student.obj.img"/>" 
													class="fa fa-file-alt btn btn-info btn-sm btn-img-view">
													<spring:message code="app.markingPaper.action.student.obj.img" /></a>
	                                        </td>
	                                    </tr>
	                                </c:forEach>
	                            </tbody>
	                        </table>
	                        <div class="row" id="splitPageDiv">
								<jsp:include page="/views/common/splitPage.jsp">
									<jsp:param value="mainPanel" name="divId"/>
									<jsp:param value="splitPage" name="formId"/>
									<jsp:param value="splitPageDiv" name="splitPageDiv"/>
								</jsp:include>
							</div>
						</form>
				    </div>
				</div>
			</div>
		</div>
    </body>
</html>    